package com.appspot.moviesessions.model;

import java.util.Collections;
import java.util.Map;

import org.springframework.context.ApplicationEvent;

import com.appspot.moviesessions.model.Movie.Fields;

public class MovieInformationFoundEvent extends ApplicationEvent {

	private static final long serialVersionUID = 1L;
	private Map<Fields, Object> fields;
	private String name;

	public MovieInformationFoundEvent(Object source,String name, Map<Fields, Object> updateFields) {
		super(source);
		this.fields = updateFields;
		this.name = name;
	}
	
	public Map<Fields, Object> getFields() {
	    return Collections.unmodifiableMap(fields);
    }
	
	public String getName() {
	    return name;
    }
	
	
}
